﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="misList.aspx.cs" Inherits="pro_mis_misList" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>任务列表</title>
    <link href="../../css/main.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <div id="content">
            <div>
            <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
                ConnectionString="<%$ ConnectionStrings:appConnectionString %>" 
                
                
                    
                    SelectCommand="SELECT levelmission.levelmissionid, levelmission.actorroleid, levelmission.projectid, levelmission.type, levelmission.state, project.projectname FROM levelmission INNER JOIN project ON levelmission.projectid = project.projectid WHERE (levelmission.actor = @username) AND (levelmission.state &lt;&gt; '有效的') AND (levelmission.state &lt;&gt; '无效的')">
                <SelectParameters>
                    <asp:SessionParameter Name="username" SessionField="username" />
                </SelectParameters>
            </asp:SqlDataSource>
            评级任务：<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
                CellPadding="4" DataSourceID="SqlDataSource1" ForeColor="#333333" 
                GridLines="None" Width="100%">
                <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                <Columns>
                    <asp:BoundField DataField="projectname" HeaderText="项目名称" 
                        SortExpression="projectname" ItemStyle-Width="300px" >
                        <HeaderStyle HorizontalAlign="Center" />
<ItemStyle HorizontalAlign="Center"></ItemStyle>
                    </asp:BoundField>
                    <asp:BoundField DataField="state" HeaderText="状态" SortExpression="state" >
<ItemStyle HorizontalAlign="Center"></ItemStyle>
                    </asp:BoundField>
                    <asp:HyperLinkField Text="&lt;img src='../../images/detail.gif' alt='详细信息' /&gt;" 
                        DataNavigateUrlFields="levelmissionid" 
                        DataNavigateUrlFormatString="levelmisInfo.aspx?levelmissionid={0}" >
                        <ItemStyle HorizontalAlign="Right" />
                    </asp:HyperLinkField>
                </Columns>
                <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                    <EmptyDataTemplate>
                        您当前还没有没做的评级任务哦。
                    </EmptyDataTemplate>
                <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                <EditRowStyle BackColor="#999999" />
                <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
            </asp:GridView>
            </div>
            <div>
                <br />
                <asp:SqlDataSource ID="SqlDataSource2" runat="server" 
                    ConnectionString="<%$ ConnectionStrings:appConnectionString %>" 
                    
                    
                    SelectCommand="SELECT project.projectname, weightmission.weightmissionid, weightmission.weightmissionname, weightmission.weightmissiontype, weightmission.actor, weightmission.projectid, weightmission.state, weightmission.description FROM project INNER JOIN weightmission ON project.projectid = weightmission.projectid WHERE (weightmission.actor = @username) AND (weightmission.state &lt;&gt; '无效的') AND (weightmission.state &lt;&gt; '有效的')">
                    <SelectParameters>
                        <asp:SessionParameter DefaultValue="" Name="username" SessionField="username" />
                    </SelectParameters>
                </asp:SqlDataSource>
                评权任务：<asp:GridView ID="GridView2" runat="server" AutoGenerateColumns="False" 
                    CellPadding="4" DataSourceID="SqlDataSource2" ForeColor="#333333" 
                    GridLines="None" Width="100%">
                    <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                    <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                    <Columns>
                        <asp:BoundField DataField="projectname" HeaderText="项目名称" 
                            SortExpression="projectname" >
                            <ItemStyle HorizontalAlign="Center" />
                        </asp:BoundField>
                        <asp:BoundField DataField="state" HeaderText="状态" SortExpression="state" >
                            <ItemStyle HorizontalAlign="Center" />
                        </asp:BoundField>
                        <asp:HyperLinkField DataNavigateUrlFields="weightmissionid" 
                            Text="&lt;img src='../../images/detail.gif' alt='详细'/&gt;" 
                            DataNavigateUrlFormatString="weightMisInfo.aspx?weightmissionid={0}" >
<ItemStyle HorizontalAlign="Right"></ItemStyle>
                        </asp:HyperLinkField>
                    </Columns>
                    <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                    <EmptyDataTemplate>
                        您当前还没有没做的评权任务哦。<br />注意：直接赋权任务只能由组织管理员执行。
                    </EmptyDataTemplate>
                    <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                    <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                    <EditRowStyle BackColor="#999999" />
                    <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                </asp:GridView>
            </div>
        </div>
    </div>
    </form>
</body>
</html>
